package com.etc.obv;


//3 测试类
public class SimpleTest    
{    
   public static void main(String[] args){
      //3-1 构造被观察对象
      SimpleObservable obv = new SimpleObservable ();
      //3-2 SimpleObserver 观察者对象 传递obv参数
      SimpleObserver view = new SimpleObserver(obv);

      //setData
      obv.setData(1);
      obv.setData(2);
      obv.setData(2);
      obv.setData(3);
   }    
}   